<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>学位论文列表</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
    <link rel="stylesheet" href="../../css/vip.css" type="text/css">
    <SCRIPT language=JavaScript src="../../js/jquery.js"></SCRIPT>
  <SCRIPT language=JavaScript src="../../js/FoshanRen.js"></SCRIPT>
  <link rel="stylesheet" type="text/css" href="../../js/extjs/resources/css/ext-all.css"/>
<script type="text/javascript" charset="utf-8" src="../../js/extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" charset="utf-8" src="../../js/extjs/ext-all.js"></script>
  <script language="JavaScript">
	function topage(page){
	var s="<s:url action='thesis_query' namespace='/admin/thesis'/>?thesisQuery.paperTitle=<s:property value='thesisQuery.paperTitle'/>"
	+"&thesisQuery.author=<s:property value='thesisQuery.author'/>"
	+"&thesisQuery.tutor=<s:property value='thesisQuery.tutor'/>"
	+"&thesisQuery.graduateYear=<s:property value='thesisQuery.graduateYear'/>"
	+"&thesisQuery.thesisType=<s:property value='thesisQuery.thesisType'/>"
	+"&thesisQuery.keyWords=<s:property value='thesisQuery.keyWords'/>"
	+"&page="+page;
	javascript:window.location.href=s;
	}
	function deleteItem(id){
	 if(confirm("你确定要删除")){
	    $.get("thesisManage_delete.action?thesis.id="+id,
	    function(data){
	    $("#"+id).remove();
	    alert(data);
	    });
      }
    }
  </script>

  </head>
  
  <body>
  <s:form action="thesis_query" namespace="/admin/thesis" method="post">

 <table width="98%" border="0" cellspacing="1" cellpadding="3" align="center">
    <tr bgcolor="6f8ac4"> 
       <td colspan="6" ><font color="#FFFFFF">学位论文条件查询（请选择其中的一个或多个条件进行查询）：</font></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">论文题目：</div></td>
      <td><s:textfield name="thesisQuery.paperTitle" size="30" maxlength="40"/></td>
      <td> <div align="right">作者：</div></td>
      <td><s:textfield name="thesisQuery.author" size="20" maxlength="20"/></td>
      <td> <div align="right">指导老师：</div></td>
      <td><s:textfield name="thesisQuery.tutor" size="20" maxlength="20"/></td>
    </tr>
     <tr bgcolor="f5f5f5"> 
      <td> <div align="right">关键字：</div></td>
      <td><s:textfield name="thesisQuery.keyWords" size="30" maxlength="40"/></td>   
    
      <td> <div align="right">毕业年度：</div></td>
      <td><s:textfield name="thesisQuery.graduateYear" size="20" maxlength="20"/></td>
        
      <td> <div align="right">论文类别：</div></td>
       <td> 
      <s:select name="thesisQuery.thesisType" list="#{'学士':'学士','硕士':'硕士','博士':'博士','博士后':'博士后'}" headerValue="---请选择论文类别---" headerKey="">
      </s:select>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td colspan="6"> <div align="center"> 
          <input type="submit" name="edit" value=" 确 认 " class="frm_btn">
          &nbsp;&nbsp;<input type="button" name="Button" value=" 返 回 " class="frm_btn" onclick="javascript:history.back()">
        </div></td>
    </tr>
  </table>
</s:form>
<br>

  <table width="98%" border="0" cellspacing="1" cellpadding="2" align="center">
    <tr ><td colspan="10"  bgcolor="6f8ac4" align="right">
    	<%@ include file="/WEB-INF/page/shared/fenye.jsp" %>
   </td></tr>
    <tr>
      <td width="25%" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">论文题目</font></div></td>
      <td width="10%" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">作者</font></div></td>
	  <td width="10%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">指导老师</font></div></td>
	  <td width="10%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">毕业年度</font></div></td>
	  <td width="10%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">论文类别</font></div></td>	  
      <td width="15%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">详细信息查询</font></div></td>
      <td width="10%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">修改</font></div></td>
      <td width="10%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">删除</font></div></td>
    </tr>
    <s:iterator value="#pageView.records">
    <tr id="<s:property value='id'/>">
      <td bgcolor="f5f5f5"> <div align="center"><s:property value="paperTitle"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="author"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="tutor"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="graduateYear"/></div></td>	  
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="thesisType"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><a href='<s:url action="thesisManage_detailQuery" namespace="/admin/thesis"><s:param name="thesis.id" value="%{id}"></s:param></s:url>'>论文详细信息</a></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><a href='<s:url action="thesisManage_edit" namespace="/admin/thesis"><s:param name="thesis.id" value="%{id}"></s:param></s:url>'>
	  <img src="../../images/edit.gif" width="15" height="16" border="0"></a></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><input type="button" class="frm_btn" value="删除" onClick="deleteItem(<s:property value='id'/>)"/></div></td> 
	</tr>
    </s:iterator>     
  </table>
 
  </body>
</html>
